<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <script src="/static/vue.js"></script>

    <style>
        #app {
            display: flex;
            justify-content: space-around;
        }

        .box {
            width: 45%;
        }

        video {
            margin-top: 20px;
            width: 100%;
            height: auto;
            border: 2px solid #000;
        }
    </style>
</head>

<body>
    <div id="app">
        <div class="box">
            <div class="header">
                <button @click="startRecordScreen">开始录制屏幕</button>
                <button @click="stopRecordScreen">停止录制</button>
                <!-- <button @click="">保存到服务器</button> -->
            </div>
            <video ref="screen" autoplay></video>
        </div>
        <div class="box">
            <div class="header">
                <button @click="startRecordCamera">开始录制摄像头</button>
                <button @click="stopRecordCamera">停止录制</button>
                <!-- <button @click="">保存到服务器</button> -->
            </div>
            <video ref="camera" autoplay></video>
        </div>
    </div>

    <script src="/static/main.js">
    </script>
</body>

</html>